package com.kgame5.xtank3d.effect.myemitters {
import kgame5.enginex.enum.Layer3DEnum;
import kgame5.k3d.core.obj3d.node3d.Node3D;

import com.kgame5.xtank3d.effect.MyEmitter;
import com.kgame5.xtank3d.resource.ResourceManagerX;

/**
 * @author kk
 * 弹坑
 */
public class CraterEmitter extends MyEmitter{
	public function CraterEmitter(r:int=32) {
		//T.p("CraterEmitter");
		
		var md_chip:Node3D=ResourceManagerX.getInstance().getCraterShadow(r);
		//Factory3D.CreateShadow(r*2,"MyBmd_Crater");
		
		md_chip.alphaSpeed=-0.02;
		md_chip.life=Math.abs(1/md_chip.alphaSpeed);
			
		//添加到世界
		md_g.addChild(md_chip);
		md_g.layerID = Layer3DEnum.LAYER_GROUNDMARK;
	}
}
}
